package com.bamboo.toolbox.core.swing;

import javax.swing.*;

/**
 * @author luzhiqing
 * @version 1.0
 * @date 2022/10/22
 */
public class TextScrollPane extends JScrollPane {

    private JTextArea textArea;

    public TextScrollPane() {
        this.textArea = new JTextArea("luzhqing test");
        this.setViewportView(textArea);
    }

    public String getText(){
        return this.textArea.getText();
    }

    public void setText(String text){
        this.textArea.setText(text);
    }

}
